<?php
/**
 * 运兵车
 * Class TroopCarrier
 */
class TroopCarrier extends CompositeUnit{

	function addUnit(Unit  $unit){
		if($unit instanceof Cavalry){
			throw new UnitException("Can't get a horse on the vehicle");
		}
		super::addUnit();
	}
	
	//攻击强度
	function bombardStrength(){
		return 0;
	}



}